Vue.component('c-status', {
  template:`
  <el-switch
    :active-value="1"
    :inactive-value="2"
    v-model="value"></el-switch>
  `,
  props: {
    value: {
      default: 1
    }
  },
  watch: {
    value(newName, oldName) {
        this.$emit('input', this.value);
    }
  }
});
